]> dgit.raspbian.org Git - ostree.git/commit
pull: Fix GLib assertion crash on invalid UTF-8 ref names
authorwangzhaohui <wangzhaohui@uniontech.com>
Tue, 23 Jun 2026 06:28:31 +0000 (14:28 +0800)
committerwangzhaohui <wangzhaohui@uniontech.com>
Tue, 23 Jun 2026 06:49:37 +0000 (14:49 +0800)
commitac10a27dac0bfc8348b2303de9de5cf589f9cbe3
tree7605dd404f0ff7eddcce9d047fcf0ca5437b2238
parent0a348dd1e2c380c6c35ab04c530746e2f49071da
pull: Fix GLib assertion crash on invalid UTF-8 ref names

When ostree pull or ostree pull-local receives a branch name containing
invalid UTF-8 bytes, g_variant_new_strv() triggers a GLib-CRITICAL
assertion failure on g_utf8_validate(), followed by a NULL pointer
dereference and segmentation fault.

Fixes: https://github.com/ostreedev/ostree/issues/2959
Makefile-tests.am
src/libostree/ostree-core.c
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-pull.c
tests/test-validate-utf8.c [new file with mode: 0644]